package com.xizi.collection;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author xizizzz
 * @description: TODO
 * @date 2021-6-30下午 02:17
 */
public class ReentreentLock {
    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        lock.lock();
        lock.lock();
        lock.lock();
        lock.lock();
        lock.lock();
        System.out.println("123");
        lock.unlock();
    }
}
